package Week15;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBOpenHelper extends SQLiteOpenHelper{
	
public DBOpenHelper(Context context){
	super(context, "BlogDB", null, 1);
}
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE Mark(Id varcher(20) primary key ,title varcher(20),link varcher(20),type integer,summary varcher(20),comment integer)");
		db.execSQL("CREATE TABLE Article(Id varcher(20) primary key ,title varcher(20),summary varcher(20))");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}

}
